import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld.vue'
import Login from '@/components/Login.vue'
import Msg from "@/components/Msg.vue"
import Type from "@/components/Type.vue"
import UserMsg from "@/components/UserMsg.vue"

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/home',
      name: 'HelloWorld',
      component: HelloWorld,
      children: [
        {
          path: '/home/Msg',
          component: Msg,
        },
        {
          path: '/home/type',
          component: Type,
        },
        {
          path: '/home/UserMsg',
          component: UserMsg,
        }
        
      ]
    },

  ]
})
